package com.weiiew.buildtypeservice.mapper;

import com.weiiew.common.entity.dto.BuildingType;
import com.weiiew.common.entity.vo.ItemTypeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description
 * @Author 魏锴
 * @Date 2024/8/8
 */
@Mapper
public interface BuildingTypeMapper {

    List<ItemTypeVO> getBuildTypes(@Param("name") String name,@Param("version") Integer version);

    boolean renameType(@Param("id")Integer id, @Param("name") String name);

    boolean insertType(BuildingType type);

    boolean deleteType(Integer id);

    Integer countBuildByType(Integer id);
}
